package initialize

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func CoverPanic(ctx *gin.Context) {
	if r := recover(); r != nil {
		ctx.JSON(http.StatusOK, gin.H{
			"msg": "发送失败",
		})
	}
}
